import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
  content = '这是第3页内容';
  options: any;
  change(e): void {
    this.content = `这是第${e.page}页内容`;
    if (e.isBegin) {
      console.log('这是第一页');
    }
    if (e.isEnd) {
      console.log('这是最后一页');
    }
  };
  ngOnInit() {
    this.options = { total: 20, page: 3, prevPage: '上一页', nextPage: '下一页' };
  }
}
